
public class MolarMass
{
	double[] AtomicMasses;
	String[] Elements;
	double molarMass;
	PeriodicTableAcess Search;
	InfoStringParse AtomicMass;
	public MolarMass(double[] atomicMass)//method calling constructor
	{
		AtomicMasses = atomicMass;
	}
	
	public MolarMass(String[] elements)
	{
		Elements = elements;
	}
	
	private void getAtomicMass()// gets the necesary info from InfoStringParse
								// method
	{
		for (int i = 0; i < Elements.length; i++)
		{
			Search = new PeriodicTableAcess(Elements[i]);
			String results = Search.getSearchResult();
			AtomicMass = new InfoStringParse(results);
			AtomicMasses[i] = AtomicMass.getAtomicMass();
		}
	}
	
	private void calculateMolarMass()
	{
		molarMass = 0;
		
	}
}
